package com.ycz.tx;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ycz
 * @date 2021/6/26
 * @description TODO
 * @Company © 版权所有 深圳市天行云供应链有限公司
 */
public class TestTxApplication {


    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("config.xml");
        UserService userService = applicationContext.getBean(UserService.class);
        // userService 是通过CglibAopProxy.intercept()获取的对象
        userService.insert();
    }


}
